package net.apexes.demo.codegen.querydsl.entity;


/**
 * GoodsBase. the database table "GOODS_BASE"
 */
public class GoodsBase extends net.apexes.demo.codegen.entity.base.EntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * NAME
     */
    private String name;

    /**
     * QUICK_CODE
     */
    private String quickCode;

    /**
     * MEASURE_TYPE
     */
    private String measureType;

    /**
     * GOODS_GROUP_ID
     */
    private String goodsGroupId;

    /**
     * TEMPLATE_ID
     */
    private String templateId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getQuickCode() {
        return quickCode;
    }

    public void setQuickCode(String quickCode) {
        this.quickCode = quickCode;
    }

    public String getMeasureType() {
        return measureType;
    }

    public void setMeasureType(String measureType) {
        this.measureType = measureType;
    }

    public String getGoodsGroupId() {
        return goodsGroupId;
    }

    public void setGoodsGroupId(String goodsGroupId) {
        this.goodsGroupId = goodsGroupId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public void cloneFrom(GoodsBase from) {
        this.name = from.name;
        this.quickCode = from.quickCode;
        this.measureType = from.measureType;
        this.goodsGroupId = from.goodsGroupId;
        this.templateId = from.templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",name=").append(name);
        sb.append(",quickCode=").append(quickCode);
        sb.append(",measureType=").append(measureType);
        sb.append(",goodsGroupId=").append(goodsGroupId);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

